import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import content from '@/components/content'
import jectbase from '@/components/jectbase'
import notice from '@/components/notice'
import emptyPage from '@/components/emptyPage'
import jectCheck from '@/components/data/jectCheck'
import dataDetial from '@/components/data/dataDetial'
import chartOne from '@/components/data/chartOne'
import chartTwo from '@/components/data/chartTwo'
import jinzhang from '@/components/jinzhang'
// import changePwd from '@/components/changePwd'
import prejinzhang from '@/components/upto1/prejinzhang'
import preUpTo from '@/components/upto1/preUpTo'
import preUpToS from '@/components/upto1/preUpToS'
import preDetial from '@/components/upto1/preDetial'
import zijing from '@/components/upto2/zijing'
import detial from '@/components/upto2/detial'
import upTo from '@/components/upto2/upTo'
import upToS from '@/components/upto2/upToS'
import baseEdit from '@/components/base/baseEdit'
import baseDetial from '@/components/base/baseDetial'
import baseAdd from '@/components/base/baseAdd'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'login',
      component:login
    },
    {
      path:'/content',
      name:'content',
      component:content,
      children:[
        {
          path:'/jectbase',//---------基础信息
          name:'jectbase',
          component:jectbase
        },
        {
          path:'/prejinzhang',//-----------进展上报---工作前期
          name:'prejinzhang',
          component:prejinzhang
        }, {
          path:'/prejinzhang/preDetial/:reportDate/:dikeCode',
          name:'preDetial',
          component:preDetial
        },
        {
          path:'/prejinzhang/preUpTo/:dikeCode',
          name:'preUpTo',
          component:preUpTo
        },
        {
          path:'/prejinzhang/preUpToS/:dikeCode',//---------省级修改前期月报中的一些投资的固定信息
          name:'preUpToS',
          component:preUpToS
        },{
          path:'/zijing',//----------工作进度月报
          name:'zijing',
          component:zijing
        },
        {
          path:'/jectCheck',//----统计分析
          name:'jectCheck',
          component:jectCheck,
          meta:{keepAlive:false}
        },
        {
            path:'/chartOne',//----统计分析
            name:'chartOne',
            component:chartOne
        },{
          path:'/chartTwo',//----统计分析
          name:'chartTwo',
          component:chartTwo
        },
        {
          path:'/jectCheck/dataDetial/:table/:code',
          name:'dataDetial',
          component:dataDetial
        },
        {
          path:'/jinzhang',//---x系统管理
          name:'jinzhang',
          component:jinzhang
         },
        //{
        //   path:'/jinzhang/changePwd/:userName',//用户更改密码
        //   name:'changePwd',
        //   component:changePwd,
        //   meta:{keepAlive:false}
        // },
        {
          path:'/notice',//通知
          name:'notice',
          component:notice
        },
        {
          path:'/emptyPage',//-----------空白的跳转刷新页面
          name:'emptyPage',
          component:emptyPage
        },
        {
          path:'/zijing/detial/:reportDate/:dikeCode',
          name:'detial',
          component:detial
        },
        {
          path:'/zijing/upTo/:dikeCode',
          name:'upTo',
          component:upTo
        },
        {
          path:'/zijing/upToS/:dikeCode',//---------省级修改进展月报中的一些投资的固定信息
          name:'upToS',
          component:upToS
        },
        {
          //县市修改基本信息
          path:'/jectbase/baseEdit/:dikeCode',
          name:'baseEdit',
          component:baseEdit
        },
        {
          //省级增加或者修改基本数据
          path:'/jectbase/baseAdd/:addNew/:dikeCode',
          name:'baseAdd',
          component:baseAdd
        },
        {
          //基本详细数据的查看
          path:'/jectbase/baseDetial/:dikeCode',
          name:'baseDetial',
          component:baseDetial
        },
      ]
    },
  ]
})



